home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / daynum.doc < prev    next >
Text File  |  1986-09-23  |  914b  |  37 lines

  1.  
  2.  
  3.        NAME
  4.                daynum -- find the number of a date within a year
  5.  
  6.        SYNOPSIS
  7.                value = daynum(month, day, year);
  8.                int value;      number 1-366
  9.                int month;      month number 1-12
  10.                int day;        date of the month 1-31
  11.                int year;       year, starting at 1980
  12.  
  13.        DESCRIPTION
  14.        This function returns the day number, 1-366, for the given
  15.        date.  By itself, this is not very useful, but the function is
  16.        used as an intermediate calculation in certain other date routines.
  17.        Years below 1980 are ignored.  The year value is used to determine
  18.        status as leap year.
  19.  
  20.        EXAMPLE
  21.  
  22.               for July 2, 1986:
  23.  
  24.               int value;
  25.               value = daynum(7, 2, 1986);
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.        This function is found in SMDLx.LIB for the Datalight Compiler.
  37.